<?php

use App\Http\Controllers\Api\BannerController;
use App\Http\Controllers\Api\OrderController;
use App\Http\Controllers\Api\TravelAddressController;
use App\Http\Controllers\Donation\UserController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\CommonController;

//首页-轮播图
Route::get('index/banner/list', [BannerController::class, 'getBannerList']);
//创建订单
Route::post('add/order', [OrderController::class, 'addOrder']);
//订单详情
Route::get('order/info', [OrderController::class,'getOrderInfo']);
//评价订单
Route::post('appraise/order', [OrderController::class, 'appraiseOrder']);
//订单取消
Route::post('order/cancel', [OrderController::class,'updateOrderCancel']);
//我的-订单列表
Route::get('my/order/list', [OrderController::class, 'getMyOrderList']);
//获取用户信息
Route::get('get/user/info', [UserController::class, 'getUserInfo']);
//获取用户钱包信息
Route::get('get/user/wallet', [UserController::class, 'getUserWallet']);
//保存用户信息
Route::post('save/user/info', [UserController::class, 'updateUserInfo']);
// 变更用户手机号
Route::post('change/user/phone', [UserController::class, 'updateUserPhone']);
//修改订单
Route::post('update/order', [OrderController::class, 'updateOrder']);
//常用地址
Route::get('get/travel/address', [TravelAddressController::class, 'getTravelAddress']);
//添加常用地址
Route::post('add/travel/address', [TravelAddressController::class, 'addTravelAddress']);
//预计扣除
Route::get('expected/deduction', [OrderController::class,'expectedDeduction']);
//反馈
Route::post('feedback', [CommonController::class,'feedback']);
// 获得机场
Route::get('get/airport', [CommonController::class,'getAirport']);
// 公益出行列表
Route::get('get/card/gycx', [CommonController::class,'getCardGYCX']);
// 公益出行卡 - 购买
Route::post('buy/card/gycx', [CommonController::class,'buyCardGYCX']);
// 企业通勤卡- 列表
Route::get('get/card/enterprise/commute', [CommonController::class,'getCardCommute']);
// 获取开通企业通勤的 企业信息
Route::get('get/enterprise/info', [CommonController::class,'getEnterpriseInfo']);
// 企业通勤卡- 购买
Route::post('buy/card/enterprise/commute', [CommonController::class,'buyCardCommute']);
// 获取公益出行的收支记录
Route::get('get/gycx/payment/list', [CommonController::class,'getGycxPaymentList']);
// 获取企业通勤的收支明细
Route::get('get/commute/payment/list', [CommonController::class,'getCommutePaymentList']);
